using System.Collections.Generic;
using Web.App.Infrastructure.ApplicationMessages.Contracts;
using Webshop20.Application.DataTransferObjects;

namespace Webshop20.Application.Queries.Messages
{
    public class CheckoutOverviewResponse : ResponseMessageBase
    {
        public decimal TotalPrice { get; private set; }
        public IEnumerable<CartItemDTO> PurchasedItems { get; private set; }
        public IEnumerable<CartItemDTO> SavedItems{get; private set;}
        public CustomerDTO Customer { get; private set; }

        public CheckoutOverviewResponse(IEnumerable<CartItemDTO> purchasedItems, IEnumerable<CartItemDTO> savedItems, CustomerDTO customer, IDomainMessage domainMessage, decimal totalPrice) : base(domainMessage)
        {
            PurchasedItems = purchasedItems;
            SavedItems = savedItems;
            Customer = customer;
            TotalPrice = totalPrice;
        }


    }
}